package cn.iocoder.yudao.module.pay.channel.vo;

import cn.iocoder.yudao.framework.business.basic.pojo.dto.SaveDTO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Schema(description = "管理后台 - 支付渠道保存 SaveVO")
@Data
public class PayChannelSaveDTO extends SaveDTO {

    @Schema(description = "支付类型，如：wallet-钱包、wxv3-微信支付APIv3", requiredMode = Schema.RequiredMode.REQUIRED, example = "wxv3")
    @NotBlank(message = "支付类型不能为空")
    private String type;

    @Schema(description = "渠道编码，如：wallet-钱包支付、wx_lite-微信小程序支付", requiredMode = Schema.RequiredMode.REQUIRED, example = "wx_lite")
    @NotBlank(message = "渠道编码不能为空")
    private String code;

    @Schema(description = "配置信息，JSON格式")
    private String config;

    @Schema(description = "是否启用", example = "true")
    private Boolean enabled = true;

    @Schema(description = "排序", example = "1")
    private Integer sort = 1;

}
